<?php foreach ($users as $user) :?>
    <p><?php echo $user->surname;?></p>
<?php endforeach;

$this->widget('CLinkPager', array(
    'pages' => $pages,
));
?>
